package com.auth;

import com.dto.UserDto;

public class UserHolder {

    private final static ThreadLocal<UserDto> local = new ThreadLocal<>();

    public static UserDto get() {
        return local.get();
    }

    public static void set(UserDto userDto){
        local.set(userDto);
    }
}
